package com.fqgj.sentry.policy.engine.domain.enums;

import java.io.Serializable;

/**
 * Created by kennykong on 2017/7/20.
 */
public enum PolicyTypeEnum implements Serializable {
    /**
     * 策略种类:评分卡|规则组
     */
    DECIDE, SCORE;

    public static PolicyTypeEnum transformByType(Integer type) {
        for (PolicyTypeEnum policyTypeEnum : PolicyTypeEnum.values()) {
            if (policyTypeEnum.ordinal() + 1 == type) {
                return policyTypeEnum;
            }
        }
        return null;
    }

}
